
Vue.component('c-card', {
  template:`


  <div class="card">
      <div class="card-body">
        <div class="row">
          <div class="col-sm-12 col-md-4">
            <h3 v-if="title" class="card-title">{{title}}</h3>
            <h6 v-if="subtitle" class="card-subtitle">{{subtitle}}</h6>
            <slot name="header"></slot>
          </div>
          <div class="col-sm-12 col-md-8 text-right" style="padding-bottom:10px;">
            <slot name="header-right"></slot>
          </div>
        </div>
        <hr class="m-t-0 m-b-0">
      </div>
      <div class="card-body clearfix">
        <slot></slot>

      </div>

      <div v-if="footer" class="card-footer">
        <div class="row">
          <div class="col-sm-12 col-md-4">
            <slot name="footer"></slot>
          </div>
          <div class="col-sm-12 col-md-8 text-right" style="padding-bottom:10px;">
            <slot name="footer-right"></slot>
          </div>
        </div>
      </div>
  </div>



  `,
  data() {
    return {}
  },
  props: {
    title: {
      default: ""
    },
    subtitle: {
      default: ""
    },
    footer:{
      default: false
    }
  }

});
